package com.sunyard.dal.mapper;

import com.sunyard.dal.dto.OtherParamDTO;
import com.sunyard.dal.dto.PubConfigDTO;
import com.sunyard.dal.entity.OtherParam;
import com.sunyard.dal.entity.OtherParamCopy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xin.qi
 * @Classname OtherParamMapper
 * @Description TODO 其他参数设置数据交互层
 * @Date 2020/1/10 17:43
 */
public interface OtherParamMapper {

    /**
     * @param otherParamCopy
     * @return void
     * @Author xin.qi
     * @Description 审核通过，修改主表
     * @Date 2020/1/10 19:23
     * @Param
     */
    int update(OtherParamCopy otherParamCopy);

    int updateByKey(PubConfigDTO pubConfigDTOS);

    /**
     * @param otherParam
     * @return java.util.List<com.sunyard.dal.dto.OtherParamDTO>
     * @Author xin.qi
     * @Description 查询
     * @Date 2020/1/15 19:25
     * @Param
     */
    List<OtherParamDTO> queryByPage(OtherParam otherParam);

    List<OtherParamDTO> queryByKeys(@Param("keys") List keys);

    /**
     * @param confKey
     * @return com.sunyard.dal.entity.OtherParam
     * @Author xin.qi
     * @Description 根据主键查询
     * @Date 2020/3/6 14:27
     * @Param
     */
    OtherParam queryByConfKey(String confKey);

    OtherParam queryByConfKey02(String confKey);

    int countByConfkey(String confKey);

    int insert(OtherParam otherParam);
}
